<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints>
    <!--
      For some reason, this particular test hits some case in AddressSanitizer where it fails to intercept methods correctly, causing failures.
      Disable for now.
    -->
    <DisableProjectBuild Condition="'$(EnableNativeSanitizers)' != ''">true</DisableProjectBuild>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="GenerateUnmanagedEntryPoints.cs" />
    <ProjectReference Include="$(MSBuildThisFileDirectory)ReferencedAssembly1\ReferencedAssembly1.csproj" />
    <ProjectReference Include="$(MSBuildThisFileDirectory)ReferencedAssembly2\ReferencedAssembly2.csproj" />
  </ItemGroup>

  <!-- Expose additional unmanaged entry points from ReferencedAssembly1 -->
  <ItemGroup>
    <UnmanagedEntryPointsAssembly Include="ReferencedAssembly1" />
  </ItemGroup>

</Project>
